package com.zhongchaowuye.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.zhongchaowuye.dao.B_HTDao;
import com.zhongchaowuye.pojo.B_HT;
import com.zhongchaowuye.service.B_HTService;

@Transactional
@Service("b_HTService")
public class B_HTServiceImpl implements B_HTService
{
	@Resource
	B_HTDao b_HTDao;
	
	@Override
	public int insertB_HT(B_HT b_HT) {
		// TODO Auto-generated method stub
		return b_HTDao.insertB_HT(b_HT);
	}

	@Override
	public int updateB_HT(B_HT b_HT) {
		// TODO Auto-generated method stub
		return b_HTDao.updateB_HT(b_HT);
	}

	@Override
	public int delB_HT(B_HT b_HT) {
		// TODO Auto-generated method stub
		return b_HTDao.delB_HT(b_HT);
	}
	
	@Override
	public B_HT getB_HT(B_HT b_HT) {
		// TODO Auto-generated method stub
		return b_HTDao.getB_HT(b_HT);
	}
	
	@Override
	public List<Map<String, Object>> getB_HTList(B_HT b_HT) {
		// TODO Auto-generated method stub
		PageHelper.startPage(b_HT.getPageIndex(),b_HT.getPageSize(),true);
		return b_HTDao.getB_HTList(b_HT);
	}
}
